{$t("invoice.addTipq")}

{#if !showCustomAmount}
{Math.round(tipPercent)}%
{f(amountFiat, currency, locale)} +{f(tipAmount, currency, locale)}
{s(amount, locale)}
+{s(tip, locale)}
{#if tip} {:else} {#each tipAmounts as amount, i} {#if i === 0} {:else} {/if} {/each} {/if}
{$t("payments.cancel")}
{/if} {#if showCustomAmount}
handleCustomTipAmount(e)} placeholder={$t("payments.amount")} use:focus />
{/if}